package net.oschina.app.ui.activity.me;

import net.oschina.app.R;
import net.oschina.app.base.BaseActivity;
import net.oschina.app.base.BasePagerAdapter;
import net.oschina.app.fragment.me.noticefragment.Fans1Fragment;
import net.oschina.app.fragment.me.noticefragment.Notice1Fragment;
import net.oschina.app.util.ToolBarUtil;


public class FansActivity extends BaseActivity {
    /*@BindView(R.id.tab_notice)
    PagerSlidingTabStrip mTabFans;
    @BindView(R.id.vp_notice)
    ViewPager mVpFans;
    // 1  引用控件

    private List<BaseFragment> pagers;
    private FansAdapter mAdapter;*/

    @Override
    public int getLayoutRes() {
        return R.layout.activity_me_fans;

    }

    @Override
    public void initView() {
       /* ButterKnife.bind(this);
        // 2 ViewPager设置适配器，装配页面
        mAdapter = new FansAdapter(getSupportFragmentManager());
        mVpFans.setAdapter(mAdapter);
        //3 PagerSlidingTabStrip与ViewPager绑定在一起
        mTabFans.setViewPager(mVpFans);*/
        ToolBarUtil.setToolBar(this,"关注/粉丝");
    }

    @Override
    public void initData() {
        /*pagers = new ArrayList<>();
        pagers.add(new Notice1Fragment());
        pagers.add(new Fans1Fragment());*/
        BasePagerAdapter adapter = new BasePagerAdapter(getSupportFragmentManager(),this);
        adapter.addTab(Notice1Fragment.class,"关注");
        adapter.addTab(Fans1Fragment.class,"粉丝");
    }

    @Override
    public void initListener() {

    }

   /* @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
    }*/
}
